package com.ruoyi.cderp.mapper;

import java.util.List;

import com.ruoyi.cderp.domain.CustomerSettleFeeSheetDetail;
import com.ruoyi.cderp.domain.CustomerSettlePreSheet;
import com.ruoyi.cderp.domain.CustomerSettlePreSheetDetail;

/**
 * 客户预付款单Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-11
 */
public interface CustomerSettlePreSheetMapper
{
    /**
     * 查询客户预付款单
     *
     * @param id 客户预付款单主键
     * @return 客户预付款单
     */
    public CustomerSettlePreSheet selectCustomerSettlePreSheetById(String id);

    /**
     * 查询客户预付款单列表
     *
     * @param customerSettlePreSheet 客户预付款单
     * @return 客户预付款单集合
     */
    public List<CustomerSettlePreSheet> selectCustomerSettlePreSheetList(CustomerSettlePreSheet customerSettlePreSheet);

    /**
     * 新增客户预付款单
     *
     * @param customerSettlePreSheet 客户预付款单
     * @return 结果
     */
    public int insertCustomerSettlePreSheet(CustomerSettlePreSheet customerSettlePreSheet);

    /**
     * 修改客户预付款单
     *
     * @param customerSettlePreSheet 客户预付款单
     * @return 结果
     */
    public int updateCustomerSettlePreSheet(CustomerSettlePreSheet customerSettlePreSheet);

    /**
     * 删除客户预付款单
     *
     * @param id 客户预付款单主键
     * @return 结果
     */
    public int deleteCustomerSettlePreSheetById(String id);

    /**
     * 批量删除客户预付款单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerSettlePreSheetByIds(String[] ids);

    /**
     * 批量删除客户预付款单明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerSettlePreSheetDetailBySheetIds(String[] ids);

    /**
     * 批量新增客户预付款单明细
     *
     * @param customerSettlePreSheetDetailList 客户预付款单明细列表
     * @return 结果
     */
    public int batchCustomerSettlePreSheetDetail(List<CustomerSettlePreSheetDetail> customerSettlePreSheetDetailList);


    /**
     * 通过客户预付款单主键删除客户预付款单明细信息
     *
     * @param id 客户预付款单ID
     * @return 结果
     */
    public int deleteCustomerSettlePreSheetDetailBySheetId(String id);

    //查询项目收款信息
    List<CustomerSettlePreSheetDetail> selectPreSheetDetail(String id);
}
